#-------------------------------------------------
#
# Project created by QtCreator 2022-09-23T21:29:23
#
#-------------------------------------------------

QT       -= gui
QT       += core
QT       += network

TARGET = network
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11

DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ConfigFileservice.cpp \
        network.cpp \
        socketclient.cpp \

HEADERS += \
    ConfigFileservice.h \
        network.h \
        network_global.h \
        socketclient.h \
        socketconstant.h \

unix {
    target.path = /usr/lib
    INSTALLS += target
}

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../expLog/release/ -lexpLog
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../expLog/debug/ -lexpLog
else:unix: LIBS += -L$$OUT_PWD/../expLog/ -lexpLog

INCLUDEPATH += $$PWD/../expLog
DEPENDPATH += $$PWD/../expLog

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../expLog/release/libexpLog.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../expLog/debug/libexpLog.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../expLog/release/expLog.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../expLog/debug/expLog.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../expLog/libexpLog.a

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../util/release/ -lutil
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../util/debug/ -lutil
else:unix: LIBS += -L$$OUT_PWD/../util/ -lutil

INCLUDEPATH += $$PWD/../util
DEPENDPATH += $$PWD/../util

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../util/release/libutil.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../util/debug/libutil.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../util/release/util.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../util/debug/util.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../util/libutil.a
